package com.vivo.customer.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class HistoryChangeExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public HistoryChangeExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(String value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(String value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(String value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(String value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(String value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(String value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLike(String value) {
            addCriterion("id like", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotLike(String value) {
            addCriterion("id not like", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<String> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<String> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(String value1, String value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(String value1, String value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andFieldnameIsNull() {
            addCriterion("fieldName is null");
            return (Criteria) this;
        }

        public Criteria andFieldnameIsNotNull() {
            addCriterion("fieldName is not null");
            return (Criteria) this;
        }

        public Criteria andFieldnameEqualTo(String value) {
            addCriterion("fieldName =", value, "fieldname");
            return (Criteria) this;
        }

        public Criteria andFieldnameNotEqualTo(String value) {
            addCriterion("fieldName <>", value, "fieldname");
            return (Criteria) this;
        }

        public Criteria andFieldnameGreaterThan(String value) {
            addCriterion("fieldName >", value, "fieldname");
            return (Criteria) this;
        }

        public Criteria andFieldnameGreaterThanOrEqualTo(String value) {
            addCriterion("fieldName >=", value, "fieldname");
            return (Criteria) this;
        }

        public Criteria andFieldnameLessThan(String value) {
            addCriterion("fieldName <", value, "fieldname");
            return (Criteria) this;
        }

        public Criteria andFieldnameLessThanOrEqualTo(String value) {
            addCriterion("fieldName <=", value, "fieldname");
            return (Criteria) this;
        }

        public Criteria andFieldnameLike(String value) {
            addCriterion("fieldName like", value, "fieldname");
            return (Criteria) this;
        }

        public Criteria andFieldnameNotLike(String value) {
            addCriterion("fieldName not like", value, "fieldname");
            return (Criteria) this;
        }

        public Criteria andFieldnameIn(List<String> values) {
            addCriterion("fieldName in", values, "fieldname");
            return (Criteria) this;
        }

        public Criteria andFieldnameNotIn(List<String> values) {
            addCriterion("fieldName not in", values, "fieldname");
            return (Criteria) this;
        }

        public Criteria andFieldnameBetween(String value1, String value2) {
            addCriterion("fieldName between", value1, value2, "fieldname");
            return (Criteria) this;
        }

        public Criteria andFieldnameNotBetween(String value1, String value2) {
            addCriterion("fieldName not between", value1, value2, "fieldname");
            return (Criteria) this;
        }

        public Criteria andChangebeforeIsNull() {
            addCriterion("changeBefore is null");
            return (Criteria) this;
        }

        public Criteria andChangebeforeIsNotNull() {
            addCriterion("changeBefore is not null");
            return (Criteria) this;
        }

        public Criteria andChangebeforeEqualTo(String value) {
            addCriterion("changeBefore =", value, "changebefore");
            return (Criteria) this;
        }

        public Criteria andChangebeforeNotEqualTo(String value) {
            addCriterion("changeBefore <>", value, "changebefore");
            return (Criteria) this;
        }

        public Criteria andChangebeforeGreaterThan(String value) {
            addCriterion("changeBefore >", value, "changebefore");
            return (Criteria) this;
        }

        public Criteria andChangebeforeGreaterThanOrEqualTo(String value) {
            addCriterion("changeBefore >=", value, "changebefore");
            return (Criteria) this;
        }

        public Criteria andChangebeforeLessThan(String value) {
            addCriterion("changeBefore <", value, "changebefore");
            return (Criteria) this;
        }

        public Criteria andChangebeforeLessThanOrEqualTo(String value) {
            addCriterion("changeBefore <=", value, "changebefore");
            return (Criteria) this;
        }

        public Criteria andChangebeforeLike(String value) {
            addCriterion("changeBefore like", value, "changebefore");
            return (Criteria) this;
        }

        public Criteria andChangebeforeNotLike(String value) {
            addCriterion("changeBefore not like", value, "changebefore");
            return (Criteria) this;
        }

        public Criteria andChangebeforeIn(List<String> values) {
            addCriterion("changeBefore in", values, "changebefore");
            return (Criteria) this;
        }

        public Criteria andChangebeforeNotIn(List<String> values) {
            addCriterion("changeBefore not in", values, "changebefore");
            return (Criteria) this;
        }

        public Criteria andChangebeforeBetween(String value1, String value2) {
            addCriterion("changeBefore between", value1, value2, "changebefore");
            return (Criteria) this;
        }

        public Criteria andChangebeforeNotBetween(String value1, String value2) {
            addCriterion("changeBefore not between", value1, value2, "changebefore");
            return (Criteria) this;
        }

        public Criteria andChangeafterIsNull() {
            addCriterion("changeAfter is null");
            return (Criteria) this;
        }

        public Criteria andChangeafterIsNotNull() {
            addCriterion("changeAfter is not null");
            return (Criteria) this;
        }

        public Criteria andChangeafterEqualTo(String value) {
            addCriterion("changeAfter =", value, "changeafter");
            return (Criteria) this;
        }

        public Criteria andChangeafterNotEqualTo(String value) {
            addCriterion("changeAfter <>", value, "changeafter");
            return (Criteria) this;
        }

        public Criteria andChangeafterGreaterThan(String value) {
            addCriterion("changeAfter >", value, "changeafter");
            return (Criteria) this;
        }

        public Criteria andChangeafterGreaterThanOrEqualTo(String value) {
            addCriterion("changeAfter >=", value, "changeafter");
            return (Criteria) this;
        }

        public Criteria andChangeafterLessThan(String value) {
            addCriterion("changeAfter <", value, "changeafter");
            return (Criteria) this;
        }

        public Criteria andChangeafterLessThanOrEqualTo(String value) {
            addCriterion("changeAfter <=", value, "changeafter");
            return (Criteria) this;
        }

        public Criteria andChangeafterLike(String value) {
            addCriterion("changeAfter like", value, "changeafter");
            return (Criteria) this;
        }

        public Criteria andChangeafterNotLike(String value) {
            addCriterion("changeAfter not like", value, "changeafter");
            return (Criteria) this;
        }

        public Criteria andChangeafterIn(List<String> values) {
            addCriterion("changeAfter in", values, "changeafter");
            return (Criteria) this;
        }

        public Criteria andChangeafterNotIn(List<String> values) {
            addCriterion("changeAfter not in", values, "changeafter");
            return (Criteria) this;
        }

        public Criteria andChangeafterBetween(String value1, String value2) {
            addCriterion("changeAfter between", value1, value2, "changeafter");
            return (Criteria) this;
        }

        public Criteria andChangeafterNotBetween(String value1, String value2) {
            addCriterion("changeAfter not between", value1, value2, "changeafter");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIsNull() {
            addCriterion("createTime is null");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIsNotNull() {
            addCriterion("createTime is not null");
            return (Criteria) this;
        }

        public Criteria andCreatetimeEqualTo(Date value) {
            addCriterion("createTime =", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotEqualTo(Date value) {
            addCriterion("createTime <>", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeGreaterThan(Date value) {
            addCriterion("createTime >", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeGreaterThanOrEqualTo(Date value) {
            addCriterion("createTime >=", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeLessThan(Date value) {
            addCriterion("createTime <", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeLessThanOrEqualTo(Date value) {
            addCriterion("createTime <=", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIn(List<Date> values) {
            addCriterion("createTime in", values, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotIn(List<Date> values) {
            addCriterion("createTime not in", values, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeBetween(Date value1, Date value2) {
            addCriterion("createTime between", value1, value2, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotBetween(Date value1, Date value2) {
            addCriterion("createTime not between", value1, value2, "createtime");
            return (Criteria) this;
        }

        public Criteria andFkHistoryIsNull() {
            addCriterion("fk_history is null");
            return (Criteria) this;
        }

        public Criteria andFkHistoryIsNotNull() {
            addCriterion("fk_history is not null");
            return (Criteria) this;
        }

        public Criteria andFkHistoryEqualTo(String value) {
            addCriterion("fk_history =", value, "fkHistory");
            return (Criteria) this;
        }

        public Criteria andFkHistoryNotEqualTo(String value) {
            addCriterion("fk_history <>", value, "fkHistory");
            return (Criteria) this;
        }

        public Criteria andFkHistoryGreaterThan(String value) {
            addCriterion("fk_history >", value, "fkHistory");
            return (Criteria) this;
        }

        public Criteria andFkHistoryGreaterThanOrEqualTo(String value) {
            addCriterion("fk_history >=", value, "fkHistory");
            return (Criteria) this;
        }

        public Criteria andFkHistoryLessThan(String value) {
            addCriterion("fk_history <", value, "fkHistory");
            return (Criteria) this;
        }

        public Criteria andFkHistoryLessThanOrEqualTo(String value) {
            addCriterion("fk_history <=", value, "fkHistory");
            return (Criteria) this;
        }

        public Criteria andFkHistoryLike(String value) {
            addCriterion("fk_history like", value, "fkHistory");
            return (Criteria) this;
        }

        public Criteria andFkHistoryNotLike(String value) {
            addCriterion("fk_history not like", value, "fkHistory");
            return (Criteria) this;
        }

        public Criteria andFkHistoryIn(List<String> values) {
            addCriterion("fk_history in", values, "fkHistory");
            return (Criteria) this;
        }

        public Criteria andFkHistoryNotIn(List<String> values) {
            addCriterion("fk_history not in", values, "fkHistory");
            return (Criteria) this;
        }

        public Criteria andFkHistoryBetween(String value1, String value2) {
            addCriterion("fk_history between", value1, value2, "fkHistory");
            return (Criteria) this;
        }

        public Criteria andFkHistoryNotBetween(String value1, String value2) {
            addCriterion("fk_history not between", value1, value2, "fkHistory");
            return (Criteria) this;
        }

        public Criteria andAdduserIsNull() {
            addCriterion("addUser is null");
            return (Criteria) this;
        }

        public Criteria andAdduserIsNotNull() {
            addCriterion("addUser is not null");
            return (Criteria) this;
        }

        public Criteria andAdduserEqualTo(String value) {
            addCriterion("addUser =", value, "adduser");
            return (Criteria) this;
        }

        public Criteria andAdduserNotEqualTo(String value) {
            addCriterion("addUser <>", value, "adduser");
            return (Criteria) this;
        }

        public Criteria andAdduserGreaterThan(String value) {
            addCriterion("addUser >", value, "adduser");
            return (Criteria) this;
        }

        public Criteria andAdduserGreaterThanOrEqualTo(String value) {
            addCriterion("addUser >=", value, "adduser");
            return (Criteria) this;
        }

        public Criteria andAdduserLessThan(String value) {
            addCriterion("addUser <", value, "adduser");
            return (Criteria) this;
        }

        public Criteria andAdduserLessThanOrEqualTo(String value) {
            addCriterion("addUser <=", value, "adduser");
            return (Criteria) this;
        }

        public Criteria andAdduserLike(String value) {
            addCriterion("addUser like", value, "adduser");
            return (Criteria) this;
        }

        public Criteria andAdduserNotLike(String value) {
            addCriterion("addUser not like", value, "adduser");
            return (Criteria) this;
        }

        public Criteria andAdduserIn(List<String> values) {
            addCriterion("addUser in", values, "adduser");
            return (Criteria) this;
        }

        public Criteria andAdduserNotIn(List<String> values) {
            addCriterion("addUser not in", values, "adduser");
            return (Criteria) this;
        }

        public Criteria andAdduserBetween(String value1, String value2) {
            addCriterion("addUser between", value1, value2, "adduser");
            return (Criteria) this;
        }

        public Criteria andAdduserNotBetween(String value1, String value2) {
            addCriterion("addUser not between", value1, value2, "adduser");
            return (Criteria) this;
        }

        public Criteria andFlagIsNull() {
            addCriterion("flag is null");
            return (Criteria) this;
        }

        public Criteria andFlagIsNotNull() {
            addCriterion("flag is not null");
            return (Criteria) this;
        }

        public Criteria andFlagEqualTo(Integer value) {
            addCriterion("flag =", value, "flag");
            return (Criteria) this;
        }

        public Criteria andFlagNotEqualTo(Integer value) {
            addCriterion("flag <>", value, "flag");
            return (Criteria) this;
        }

        public Criteria andFlagGreaterThan(Integer value) {
            addCriterion("flag >", value, "flag");
            return (Criteria) this;
        }

        public Criteria andFlagGreaterThanOrEqualTo(Integer value) {
            addCriterion("flag >=", value, "flag");
            return (Criteria) this;
        }

        public Criteria andFlagLessThan(Integer value) {
            addCriterion("flag <", value, "flag");
            return (Criteria) this;
        }

        public Criteria andFlagLessThanOrEqualTo(Integer value) {
            addCriterion("flag <=", value, "flag");
            return (Criteria) this;
        }

        public Criteria andFlagIn(List<Integer> values) {
            addCriterion("flag in", values, "flag");
            return (Criteria) this;
        }

        public Criteria andFlagNotIn(List<Integer> values) {
            addCriterion("flag not in", values, "flag");
            return (Criteria) this;
        }

        public Criteria andFlagBetween(Integer value1, Integer value2) {
            addCriterion("flag between", value1, value2, "flag");
            return (Criteria) this;
        }

        public Criteria andFlagNotBetween(Integer value1, Integer value2) {
            addCriterion("flag not between", value1, value2, "flag");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}